<%= form_for(@worker) do |f| %>
  <% if @worker.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@worker.errors.count, "error") %> prohibited this worker from being saved:</h2>

      <ul>
      <% @worker.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label "Vor & Nachname" %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label "Künstlername (steht auf den Kärtchen)" %><br />
    <%= f.text_field :artist_name %>
  </div>
  <div class="field">
    <%= f.label "Telefon-nummer" %><br />
    <%= f.text_field :mobile %>
  </div>
  <div class="field">
    <%= f.label "Email-adresse" %><br />
    <%= f.text_field :email %>
  </div>
  <div class="field">
    <%= f.label "Passwort" %><br />
    <%= f.password_field :password %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
